package com.example.dashabi

import android.app.Application
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.AndroidViewModel
import java.util.*

/**
 * Created by harisucici on 2021/3/4
 * Class description:
 */
class MainModel(application: Application) : AndroidViewModel(application) {
    var currentPage by mutableStateOf(0)
    var stringS by mutableStateOf("大傻逼")
    var titles by mutableStateOf(
        listOf(
            "主页","我的借阅","个人中心"
        )
    )
    var items by mutableStateOf(
        mutableStateListOf(
            ItemEntity().apply { name="111" },
            ItemEntity().apply { name="222" },
        )
    )


}

class ItemEntity{
    var name :String?=null
    var title:String?=null
}